//版心样式
html {
    background-color: #f5f5f5;
}

.type-area {
    margin: 0 auto;
    width: 13.8rem;
}

.flex-align-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

//头部样式
header {
    margin: 0 auto;
    width: 15rem;
    height: 13.4rem;
    font-size: .64rem;
    color: white;

    //头部消息样式
    .header-box {
        width: 100%;
        background-color: #db372b;

        .header-news {
            height: 2rem;
            line-height: 2rem;

            .address-position {
                float: left;

                a {
                    float: left;
                    color: white;

                    //地址字体图标样式
                    i {
                        float: left;
                        font-size: 1rem;
                    }

                    //地址信息
                    .address-msg {
                        float: left;
                        width: 7rem;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        letter-spacing: .06rem;
                    }

                    //三角形样式

                    .address-more {

                        float: left;

                        margin-top: .9rem;
                        width: 0;
                        height: 0;
                        border: .25rem solid transparent;
                        border-top-color: white;
                    }
                }
            }

            //提示消息，注意不设宽度，让数字自动撑开
            .alerts {
                position: relative;
                float: right;
                font-size: 1rem;

                .counting {
                    position: absolute;
                    top: .4rem;
                    right: -0.1rem;
                    padding: 0 0.1rem;
                    height: .5rem;
                    border-radius: 0.32rem;
                    background-color: #f52424;
                    font-size: .24rem;
                    color: white;
                    line-height: .5rem;
                    text-align: center;
                }
            }
        }
    }

    //下拉列表
    .drop-down {
        width: 100%;
        border-radius: 0 0 0.6rem 0.6rem;
        background: white url(../images/index_img/bg-index.png) no-repeat;
        background-size: 100% auto;
        height: calc(100% - 2rem);
        line-height: calc(100% - 2rem);

        //搜索栏
        .search-box {
            position: relative;
            height: 7.8rem;

            //搜索图标
            i {
                position: absolute;
                left: 0.75rem;
                top: 0.7rem;
                font-size: .6rem;
                color: #b7b7b7;
            }

            //input栏
            input[type="search"] {
                padding-left: 1.6rem;
                width: 100%;
                height: 1.4rem;
                border: none;
                border-radius: 0.7rem;
                font-size: .44rem;
                color: #cdcdcd;
            }

            //定位图
            .head_contain {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                height: 6rem;
                border-radius: .4rem;
                margin-top: .4rem;

                .banner {
                    width: 13.8rem;
                    height: 6rem;
                    position: relative;
                    overflow: hidden;
                }

                .banner ul {
                    width: 500%;
                    /* 因为li会横着排，横着排要清除浮动 */
                    height: 100%;
                    overflow: hidden;
                    position: absolute;
                    left: 0;
                    top: 0;

                }

                .banner ul li {
                    list-style: none;
                    width: 13.8rem;
                    height: 100%;
                    float: left;
                    font-size: 1rem;
                    color: #fff;
                    line-height: 6rem;
                    text-align: center;
                }

                .banner ol {
                    /* width: 175px; */
                    height: .5rem;
                    background: rgba(0, 0, 0, .5);
                    border-radius: .3rem;
                    position: absolute;
                    left: 50%;
                    bottom: .6rem;
                    transform: translateX(-50%);
                    padding-top: .1rem;
                    padding-right: .3rem;

                }

                .banner ol li {
                    list-style: none;
                    background-color: #fff;
                    width: .4rem;
                    height: .4rem;
                    border-radius: 50%;
                    float: left;
                    margin-left: .3rem;
                    cursor: pointer;
                }

                .banner>ol>li.active {
                    background-color: #db372b;
                }

                .banner>div {
                    width: 100%;
                    height: 1.2rem;
                    position: absolute;
                    left: 0;
                    top: 50%;
                    // margin-top: ;
                    margin-top: -0.6rem;

                }

                .banner>div>p {
                    /* width: 1.25rem; */
                    float: left;
                    background-color: rgba(0, 0, 0, .5);
                    width: .8rem;
                    height: 100%;
                    line-height: 1.2rem;
                    text-align: center;
                    font-size: .6rem;
                    color: #fff;
                    cursor: pointer;
                }

                .banner>div>p:last-child {
                    float: right;
                }

                img {
                    width: 100%;
                    height: 100%;
                }
            }
        }


        //搜索列表
        .drop-down-list {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 3.8rem;

            li {
                a {

                    //五张小圆图的样式、背景尺寸设置
                    .dropDown-listLogo {
                        width: 1.68rem;
                        height: 1.7rem;
                        background-image: url(../images/index_img/火锅首页菜品.png);
                        background-size: 8.5rem 1.68rem;
                    }

                    //小圆图字体样式
                    p {
                        margin-top: .5rem;
                        font-size: .44rem;
                        color: #333333;
                    }
                }
            }
        }
    }
}

//正文样式
article {
    margin: 0 auto;
    width: 15rem;

    //正文开头4个选项栏
    .article-list {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 2.8rem;

        li {
            width: 135px;
            height: 100%;

            a {
                color: #333;
                line-height: .8rem;
                text-align: center;

                h5 {
                    font-size: .6rem;
                }

                p {
                    width: 100%;
                    height: .8rem;
                    border-radius: .4rem;
                    font-size: .44rem;
                }

                &:hover {
                    h5 {
                        color: #db372b;
                    }

                    p {
                        color: white;
                        background-color: #db372b;
                    }
                }
            }
        }
    }

    //楼层区列表，高度自适应
    .article-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        .article-content-link {
            display: block;
            margin-bottom: .4rem;
            width: 6.7rem;
            height: 9.2rem;
            background-color: white;

            img {
                width: 6.7rem;
                height: 6.7rem;
            }

            .commodity-name {
                padding-left: .4rem;
                height: .8rem;
                font-size: .52rem;
                color: #333;
            }

            .commodity-price {
                padding: 0 .32rem;
                height: .8rem;
                font-size: .6rem;
                color: #db372b;

                span {
                    &:nth-child(1) {
                        font-size: .36rem;
                    }

                    &:nth-child(2) {
                        font-size: .52rem;
                    }

                    &:nth-child(3) {
                        font-size: .44rem;
                    }

                    &:nth-child(4) {
                        font-size: .4rem;
                        color: #b8b8b8;
                    }
                }

                i {
                    float: right;
                    color: #db372b;
                    font-size: .8rem;
                }
            }
        }
    }
}

//科普栏样式
.science-box {
    margin: 0 auto;
    width: 15rem;
    height: 10.6rem;
    background-color: #fff;

    //科普栏标题
    .science-box-title {
        height: 1.7rem;
        line-height: 1.7rem;

        h4 {
            float: left;
            font-weight: 600;
            font-size: .6rem;
        }

        a {
            float: right;
            font-size: .48rem;
            color: #b7b7b7;

            img {
                width: 6rem;
                height: 3.6rem;
            }
        }
    }

    //科普栏正文
    ul {
        width: 15rem;

        //奇数li为内容
        li:nth-child(2n+1) {
            height: 4rem;

            img {
                float: left;
                width: 6rem;
                height: 3.6rem;
            }

            .science-box-content {
                float: left;
                margin-left: .8rem;
                width: 7rem;

                h5 {
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    font-size: .52rem;
                    color: black;
                    line-height: 1rem;
                }

                p {
                    font-size: .48rem;
                    color: #b3b3b3;
                    line-height: .9rem;
                }
            }
        }

        //偶数li为下划线
        li:nth-child(2n+2) {
            width: 100%;
            margin-bottom: 0.6rem;
            height: .02rem;
            background-color: #f2f2f2;
        }
    }
}